package hottargui.framework;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GameData {
	List<Tile> boardConfiguration;
	Map<PlayerColor, Player> players;
	int rounds;
	PlayerColor currentColor;

	public GameData() {
		this.boardConfiguration = new ArrayList<Tile>();
		this.players = new HashMap<PlayerColor, Player>();
		rounds = 25;
	}

	public List<Tile> getBoardConfiguration() {
		return this.boardConfiguration;
	}

	public Map<PlayerColor, Player> getPlayers() {
		return this.players;
	}

	public PlayerColor getCurrentColor() {
		return this.currentColor;
	}

	public void setCurrentColor(PlayerColor color) {
		this.currentColor = color;
	}

	public Player getCurrentPlayer() {
		return players.get(getCurrentColor());
	}

	public void setRounds(int rounds) {
		this.rounds = rounds;
	}

	public int getRoundsLeft() {
		return this.rounds;
	}

	public void endRound() {
		setRounds(--this.rounds);
	}
}
